using NHibernate;
using SinBiota.Model.Entities;
using SinBiota.Model.Persistence.Repositories.Interfaces;

namespace SinBiota.Model.Persistence.Repositories.Implementation
{
    public class MethodRepository : RepositoryAbstract<Method, int>, IMethodRepository
    {
        public MethodRepository(ISession session) : base(session)
        {
        }

        public Method FindByName(string name)
        {
            return FindByEqRestrictionUniqueResult(x => x.Name, name);
        }
    }
}